#include <stdio.h>
#include <time.h>


void shuffle(int begin, int end, int *poker)
{
    if(begin > end)
        return;

    time_t t = time(NULL);
    
    int offset = t % ((end - begin) + 1);

    printf("%d\n", poker[begin + offset]);

    shuffle(begin, begin + offset - 1, poker);

    shuffle(begin + offset + 1, end, poker);
}

int main(void)
{
    int poker[54];

    for(int i = 0; i < 54; i ++)
        poker[i] = i;

    shuffle(0, 53, poker);
}
